cc.Class({
    extends: cc.Component,

    properties: {
        label: cc.Label,
        editBox: require("CustomEditBox")
    },

    update() {
        this.label.string = this.editBox.string;
    },

    startEdit() {
        this.label.node.active = true;
    },

    endEdit() {
        this.label.node.active = false;
    }
});
